﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using RTracker.Models.Common;
using RTracker.Areas.Recruitment.Models.VacancyExpirence;
using RTracker.Areas.Recruitment.Models.VacancySalary;
using RTracker.Areas.Recruitment.Models.VacancyStatus;
using RTracker.Areas.Recruitment.Models.Shift;
using RTracker.Areas.Recruitment.Models.Department;
using RTracker.Areas.Recruitment.Models.Client;


namespace RTracker.Areas.Recruitment.Models.Vacancy
{
    public class GVacancy
    {
        // members declaration
        private List<CVacancy> _lstVacancy;
        private List<CVacancyExpirence> _lstVacancyExpirence;
        private List<CVacancySalary> _lstVacancySalary;
        private List<CVacancyStatus> _lstVacancyStatus;
        private List<CShift> _lstShift;
        private List<CDepartment> _lstDepartment;
        private List<CClient> _lstClient;
        private CVacancy _oCVacancy;       // to store object of CVacancy
        private CStatus _oCStatus;                          // to store object of CStatus
        private CPaging _oCPaging;
        private int m_nId;                                // to store organization id in case of save to return it to view. Based upon that we will refresh grid.

        // Default Constructor
        public GVacancy()
        {
            _lstVacancy = null;
            _lstVacancyExpirence = null;
            _lstVacancySalary = null;
            _lstVacancyStatus = null;
            _lstShift = null;
            _lstDepartment = null;
            _lstClient = null;
            _oCVacancy = null;
            _oCStatus = null;
            _oCPaging = null;
        }

        // parameterized constructor
        public GVacancy(List<CVacancy> lstVacancy, List<CVacancyExpirence> lstVacancyExpirence, List<CVacancySalary> lstVacancySalary, List<CVacancyStatus> lstVacancyStatus, List<CShift> lstShift, List<CDepartment> lstDepartment, List<CClient> lstClient, CVacancy oCVacancy, CStatus oCStatus, CPaging oCPaging)
        {
            _lstVacancy = lstVacancy;
            _lstVacancyExpirence = lstVacancyExpirence;
            _lstVacancySalary = lstVacancySalary;
            _lstVacancyStatus = lstVacancyStatus;
            _lstShift = lstShift;
            _lstDepartment = lstDepartment;
            _lstClient = lstClient;
            _oCVacancy = oCVacancy;
            _oCStatus = oCStatus;
            _oCPaging = oCPaging;
        }

        #region  "Properties"


        public List<CVacancy> LstVacancy
        {
            get { return _lstVacancy; }
            set { _lstVacancy = value; }
        }

        public List<CVacancyExpirence> LstVacancyExpirence
        {
            get { return _lstVacancyExpirence; }
            set { _lstVacancyExpirence = value; }
        }

        public List<CVacancySalary> LstVacancySalary
        {
            get { return _lstVacancySalary; }
            set { _lstVacancySalary = value; }
        }

        public List<CVacancyStatus> LstVacancyStatus
        {
            get { return _lstVacancyStatus; }
            set { _lstVacancyStatus = value; }
        }

        public List<CShift> LstShift
        {
            get { return _lstShift; }
            set { _lstShift = value; }
        }

        public List<CDepartment> LstDepartment
        {
            get { return _lstDepartment; }
            set { _lstDepartment = value; }
        }

        public List<CClient> LstClient
        {
            get { return _lstClient; }
            set { _lstClient = value; }
        }

        /// <summary>
        /// Used to store object of CVacancy
        /// </summary>
        public CVacancy Vacancy
        {
            get { return _oCVacancy; }
            set { _oCVacancy = value; }
        }


        /// <summary>
        /// Used to store object of CStatus
        /// </summary>
        public CStatus Status
        {
            get { return _oCStatus; }
            set { _oCStatus = value; }
        }

        /// <summary>
        /// Used to store object of CPaging
        /// </summary>
        public CPaging Paging
        {
            get { return _oCPaging; }
            set { _oCPaging = value; }
        }


        /// <summary>
        /// Used to store organization id
        /// </summary>
        public int Id
        {
            get { return m_nId; }
            set { m_nId = value; }
        }

        #endregion
    }
}